HardDiskPowered
You can use theHardDiskPowered
function to find out whether the internal hard disk is on.
Boolean HardDiskPowered();DESCRIPTION
TheHardDiskPowered
function returns a Boolean value indicating whether or not the internal hard disk is powered up. A value oftrue
means that the hard disk is on, and a value offalse
means that the hard disk is off.ASSEMBLY-LANGUAGE INFORMATION
The trap is_PowerMgrDispatch
($A09E). The selector value forHardDiskPowered
is 6 ($06) in the low word of register D0. The Boolean result is returned in the low word of register D0.